From: Bastien Nocera Date: Fri, 25 Apr 2014 13:14:22 +0000 (+0200) Subject: osdWindow: Fix setting a zero-level in osdWindow X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2522 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2d18b06b3ff22e95869d2d4a647b6e229f499b65;p=gnome-shell.git osdWindow: Fix setting a zero-level in osdWindow Commit 7101cc3170bf727aebf918f37debff94ae705c85 caused a small regression insomuch that it checks for a valid "level" but simply using "if (level)" which will be false if level is undefined and if level == 0. Check for not undefined instead. https://bugzilla.gnome.org/show_bug.cgi?id=727384 --- diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js index 1916812bf..6263070d1 100644 --- a/js/ui/osdWindow.js +++ b/js/ui/osdWindow.js @@ -127,7 +127,7 @@ const OsdWindow = new Lang.Class({ setLevel: function(level) { this._level.actor.visible = (level != undefined); - if (level) { + if (level != undefined) { if (this.actor.visible) Tweener.addTween(this._level, { level: level,